package gugga.collections.objectSet
{
	import flash.utils.Dictionary;
	import gugga.utils.CollectionUtility;
	
	public class ObjectSet
	{
		private var mSetElements : Dictionary = new Dictionary;
		
		public function addElement(aElement : Object) : void
		{
			mSetElements[aElement] = null;
		}
		
		public function removeElement(aElement : Object) : void
		{
			delete mSetElements[aElement];
		}
		
		public function containsElement(aElement : Object) : Boolean
		{
			var result : Boolean = false;
			if(mSetElements[aElement] === null)
			{
				result = true;
			}
			return result;
		}
		
		public function getAllElements() : Array
		{
			var result : Array = new Array();
			for (var obj : Object in mSetElements) 
			{
				result.push(obj);
			}
			return result;
		}

	}
}